package com.sxy;

import com.sxy.config.SpringConfig;
import com.sxy.service.BrandService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public class App {
    public static void main(String[] args) {
        //获取ioc容器
        AnnotationConfigApplicationContext c = new AnnotationConfigApplicationContext(SpringConfig.class);
        BrandService brandService = c.getBean(BrandService.class);
        brandService.selectById(10);


    }
}
